package design.mode.model.adapter;


import design.mode.model.adapter.objectadapter.SdToTfAdapter;

/**
 * @author ldanniel
 * @description
 * @date 2023/23/15:33
 * @since jdk11
 */
public class AdapterTest {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String result = computer.readSDCard(new SdCardImpl());
        System.out.println(result);

        String message = computer.readSDCard(new SdToTfAdapter(new TfCardImpl()));
        System.out.println(message);
    }
}
